/*
 * Copyright (C) 2013 se-pro group
 * 
 */
package com.sepro.tim;

import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
import android.widget.AdapterView.OnItemClickListener;

public class SettingsActivity extends DashboardActivity implements OnItemClickListener
{
	private Spinner spinerLanguage;
	private Spinner spinerTypeWaring;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		
		super.onCreate(savedInstanceState);
		setContentView (R.layout.activity_settings);
	    setTitleFromActivityLabel (R.id.title_text);
	    
	    spinerLanguage = (Spinner)findViewById(R.id.spinerLanguage);
	    
	    ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, R.array.strLanguage
	    		, android.R.layout.simple_spinner_item);
	    
	    adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
	    
	    spinerLanguage.setAdapter(adapter);
	    
	    spinerTypeWaring = (Spinner)findViewById(R.id.spnerTypeWaring);
	    
	    adapter = ArrayAdapter.createFromResource(this, R.array.strTypeWaring,
	    		android.R.layout.simple_spinner_item);
	    
	    adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
	    
	    spinerTypeWaring.setAdapter(adapter);
	}

	@Override
	protected void onDestroy() {
		// TODO Auto-generated method stub
		super.onDestroy();
	}

	@Override
	protected void onPause() {
		// TODO Auto-generated method stub
		super.onPause();
	}

	@Override
	protected void onRestart() {
		// TODO Auto-generated method stub
		super.onRestart();
	}

	@Override
	protected void onResume() {
		// TODO Auto-generated method stub
		super.onResume();
	}

	@Override
	protected void onStart() {
		// TODO Auto-generated method stub
		super.onStart();
	}

	@Override
	protected void onStop() {
		// TODO Auto-generated method stub
		super.onStop();
	}

	@Override
	public void onItemClick(AdapterView<?> parent, View view, int pos, long id) {
		// TODO Auto-generated method stub
		
	}
	
//	protected void onCreate(Bundle savedInstanceState) 
//	{
//	    super.onCreate(savedInstanceState);
//	    setContentView (R.layout.activity_settings);
//	    setTitleFromActivityLabel (R.id.title_text);
//	}	

}
